﻿using System.Collections.Generic;
using GCTrackableRace.Interfaces;

namespace GcTrackableRace.Entities
{
	public class Trackable : ITrackable
	{
		private readonly List<IRuleScore> _RuleScores = new List<IRuleScore>();

		public string Code { get; set; }
		public string Name { get; set; }
		public string Owner { get; set; }
		public string Country { get; set; }
		public string State { get; set; }
		public string County { get; set; }
		public string TrackableType { get; set; }			// UserData
		public string TrackableParentName { get; set; }		// User3

		public void AddScore(IRuleScore ruleScore)
		{
			_RuleScores.Add(ruleScore);
		}

		public IList<IRuleScore> RuleScores { get { return _RuleScores; } }
	}
}